package org.leon;

import org.leon.service.DemoService;

public class CallThread extends Thread {

    private DemoService demoService;

    public CallThread(DemoService demoService) {
        super();
        this.demoService = demoService;
    }

    @Override
    public void run() {
        //for (; ;) {
        for (int i = 0; i < 200; i++) {
            demoService.methodA();
            demoService.methodB();
            demoService.methodC();
        }
    }
}
